<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>主明细的列表界面</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/themes/icon.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.3.1.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/butnScript.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/element.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/joinElement.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/dataList/bjFk.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/pages/commen/approve.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/calculate/fx_claculate.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/fxzc.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/fxSpecialPage/tBookInfo.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/fxSpecialPage/tBookInfo.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/perJs/yzclru.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/fx/regionm_power.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/sysRight/sysRight.js"></script>

    <!-- 图片上传 -->
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/js/dropzone.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/mul_imgs.js"></script>
    <link type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/dropzone.css"
          rel="stylesheet"/>
    <link type="text/css" href="${pageContext.request.contextPath}/ainitweb/plugins/dropzone/css/basic.css"
          rel="stylesheet"/>

    <!--右键菜单-->
    <link type="text/css" href="${pageContext.request.contextPath}/css/contextmenu/contextmenu.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/model/js/contextmenu.js"></script>

    <script type="text/javascript">
        //butnList   colId  type  jsUrl   panelTitle  prefix
        $(function () {
            //初始化列表界面，多条件查询界面,常用条件查询界面(moro:判断使用哪个模板 (0:左右主明细的模板      1:一对多的模板      2:上下主明细的模板))
            initMQuery("DATALIST;QUERYCLN;commUse", '${m.prefix}', '${m.pksList[0]}', '${m.dzObjList}', '${m.moro}');
            var height = parseInt(document.documentElement.clientHeight) * 0.97;
            $("body").height(height);
        });
    </script>

    <!-- web打印 -->
    <script language="javascript"
            src="${pageContext.request.contextPath}/ainitweb/plugins/webprint/LodopFuncs.js"></script>
    <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
        <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
    </object>
</head>
<body onresize="resizeGrid();">
<div id="${m.prefix}_S_QUERY" style="height: 99%;overflow: auto;width: 100%;">
    <div id='${m.prefix}_parentTabPanel' title="${m.panelTitle}">
        <div style="width: 98%;">
            <table cellpadding="0" cellspacing="0" style="width:98%;table-layout:fixed;padding-top: 10px;">
                <tr>
                    <td align="left" style="width: 65%;font-size: 12px;">
                        <div id="${m.prefix}_useCon" pre='${m.prefix}' style="width: 100%">
                            <!-- 常用条件查询 -->
                            <table class='tableBord' id="${m.prefix}_commUse" style="float: left;"></table>
                            <!--显示多条件查询的checkbox -->
                            <span style="line-height: 30px;margin-left:15px;">
									<input type="checkbox" id='queryCB'
                                           onclick="showQuery(this,'${m.prefix}_QueryList','${m.prefix}_config',2)"/>
									<span style="cursor: pointer;"
                                          onclick="showQuerySpan(this,'${m.prefix}_QueryList','${m.prefix}_config',2)">更多条件</span>
								</span>
                        </div>
                    </td>
                    <!-- 按钮展示 -->
                    <td align="right" style="vertical-align: top;width: 40%;">
                        <div id='${m.prefix}_queryButnM'>
                            <!-- 生成公用的按钮 -->
                            <c:forEach items="${m.butnList}" var="butp">
                                <!-- 分组的公用按钮 -->
                                <c:if test="${not empty butp.IS_GROUP && butp.IS_GROUP =='T'}">
                                    <a href="javascript:void(0)" id="mb2" isbutn="true" plain="false"
                                       order="${butp.ORDERNUM}" code='${m.prefix}_${butp.BUT_CODE}'
                                       menu="#${butp.GROUP_ID}" iconCls="${butp.iconCls}"
                                       class="easyui-menubutton">${butp.BUTN_NAME}</a>
                                    <div id="${butp.GROUP_ID}" style="width: 150px;">
                                        <c:forEach items="${m.butnList}" var="butnp">
                                            <c:if test="${butnp.IS_GROUP != 'T' && not empty butnp.GROUP_ID  && butnp.GROUP_ID==butp.GROUP_ID}">
                                                <c:if test="${empty butnp.SCRIPT_FUNC}">
                                                    <div isbutn="true" iconCls="${butnp.iconCls}"
                                                         code='${m.prefix}_${butnp.BUT_CODE}' pre='${m.prefix}'
                                                         dsid='${m.dsId}' tit='${m.panelTitle}' flag='2' oflag="1"
                                                         sflag="m" moro='${m.moro}'
                                                         right='${butnp.BUT_RIGHT}'>${butnp.BUTN_NAME}</div>
                                                </c:if>
                                                <c:if test="${not empty butnp.SCRIPT_FUNC}">
                                                    <div isbutn="true" onclick="${butnp.SCRIPT_FUNC}"
                                                         iconCls="${butnp.iconCls}" code='${m.prefix}_${butnp.BUT_CODE}'
                                                         pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}'
                                                         flag='2' oflag="1" sflag="m" moro='${m.moro}'
                                                         right='${butnp.BUT_RIGHT}'>${butnp.BUTN_NAME}</div>
                                                </c:if>
                                            </c:if>
                                        </c:forEach>
                                    </div>
                                </c:if>
                                <!-- 非分组公用按钮 -->
                                <c:if test="${empty butp.IS_GROUP && empty butp.GROUP_ID}">
                                    <c:if test="${empty butp.SCRIPT_FUNC}">
                                        <a class='easyui-linkbutton' isbutn="true" id="${m.prefix}_${butp.BUT_CODE}"
                                           order="${butp.ORDERNUM}" iconCls="${butp.iconCls}"
                                           code='${m.prefix}_${butp.BUT_CODE}' pre='${m.prefix}' dsid='${m.dsId}'
                                           sflag="m" flag='2' moro='${m.moro}'
                                           right='${butp.BUT_RIGHT}'>${butp.BUTN_NAME}</a>
                                    </c:if>
                                    <c:if test="${not empty butp.SCRIPT_FUNC}">
                                        <a class='easyui-linkbutton' isbutn="true" onclick="${butp.SCRIPT_FUNC}"
                                           order="${butp.ORDERNUM}" id="${m.prefix}_${butp.BUT_CODE}"
                                           iconCls="${butp.iconCls}" code='${m.prefix}_${butp.BUT_CODE}'
                                           pre='${m.prefix}' dsid='${m.dsId}' sflag="m" flag='2' moro='${m.moro}'
                                           right='${butp.BUT_RIGHT}'>${butp.BUTN_NAME}</a>
                                    </c:if>
                                </c:if>
                            </c:forEach>
                            <!-- 生成个性按钮 -->
                            <%--	<c:forEach items="${m.preButnList}" var="but">
                                    <!-- 分组的个性化的按钮 -->
                                    <c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T' && not empty but.GROUP_ID}">
                                        <a href="javascript:void(0)" id="mb2" plain="false" isbutn="true"  order="${but.ORDERNUM}"  code='${m.prefix}_${but.BUT_CODE}' iconCls="${but.iconCls}"   menu="#${but.GROUP_ID}" class="easyui-menubutton" >${but.BUTN_NAME}</a>
                                            <div id="${but.GROUP_ID}" style="width: 150px;">
                                                <c:forEach items="${m.preButnList}" var="butn">
                                                    <c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID && butn.GROUP_ID==but.GROUP_ID}">
                                                        <c:if test="${empty butn.SCRIPT_FUNC}">
                                                               <div isbutn="true" code='${m.prefix}_${butn.BUT_CODE}' iconCls="${butn.iconCls}"  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1'  oflag="1" sflag="m" right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>
                                                           </c:if>
                                                           <c:if test="${not empty butn.SCRIPT_FUNC}">
                                                               <div  isbutn="true" onclick="${butn.SCRIPT_FUNC}"  iconCls="${butn.iconCls}" code='${m.prefix}_${butn.BUT_CODE}'  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1'  oflag="1" sflag="m"  right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>
                                                           </c:if>
                                                    </c:if>
                                                </c:forEach>
                                            </div>
                                    </c:if>
                                    <!-- 非分组的个性化的按钮-->
                                    <c:if test="${empty but.GROUP_ID && empty but.IS_GROUP}">
                                        <c:if test="${empty but.SCRIPT_FUNC}">
                                            <a class='easyui-linkbutton' isbutn="true" order="${but.ORDERNUM}"  iconCls="${but.iconCls}" code='${m.prefix}_${but.BUT_CODE}' id='${m.prefix}_${but.BUT_CODE}' sflag="m"  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='2' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
                                        </c:if>
                                        <c:if test="${not empty but.SCRIPT_FUNC}">
                                            <a class='easyui-linkbutton' isbutn="true" order="${but.ORDERNUM}"   iconCls="${but.iconCls}" onclick="${but.SCRIPT_FUNC}"  code='${m.prefix}_${but.BUT_CODE}'  id='${m.prefix}_${but.BUT_CODE}' sflag="m"  pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='2' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
                                        </c:if>
                                    </c:if>
                                </c:forEach>--%>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div id="${m.prefix}_costTabPanel" style="width:98%;">
            <div title="${m.panelTitle}列表" id="${m.prefix}_QueryList" style="width: 98%;">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="padding-top: 10px;">
                            <!-- 数据列表 -->
                            <table id="${m.prefix}_DATALIST" realdsid="${fn:split(m.dsId,';')[0]}"></table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div id='${m.prefix}_congfigVal'
                                 style="border:1px solid #99BBE8;font-size:14px; color: green;height: 30px;margin-top: 5px;"></div>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="${m.prefix}_config" style="display: none;" pre='${m.prefix}'>
                <table cellpadding="0" cellspacing="0" style="width: 98%;padding: 20px;">
                    <tr>
                        <td style="padding-top: 10px;">
                            <!-- 查询条件 	-->
                            <table class='tableBord' id="${m.prefix}_QUERYCLN"></table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div style="display: none;" id="${m.prefix}_yzpeDiv"></div>
    <input type="hidden" id='${m.prefix}_sq_pks'/>
    <input type="hidden" id="${m.prefix}_dsId" value="${m.dsId}"/>
    <input type="hidden" id="${m.prefix}_type" value="${m.type}"/>
    <input type="hidden" id="${m.prefix}_jsUrl" value="${m.jsUrl}"/>
    <input type="hidden" id="${m.prefix}_prefix" value="${m.prefix}"/>
    <input type="hidden" id="${m.prefix}_initFunc" value="${m.initFunc}"/>
    <input type="hidden" id="${m.prefix}_ainitFunc" value="${m.ainitFunc}"/>
    <input type="hidden" id="${m.prefix}_keyValue" value="${m.keyValues}"/>
    <input type="hidden" id="${m.prefix}_choice" value="${m.choice}"/>
    <input type="hidden" id="${m.prefix}_aoru" value="${m.aoru}"/>
    <input type="hidden" id="${m.prefix}_winitFunc" value="${m.winitFunc}"/>
    <input type="hidden" id="${m.prefix}_wainitFunc" value="${m.wainitFunc}"/>
    <input type="hidden" id="${m.prefix}_totalFlag" value="${m.totalFlag}"/>
    <input type="hidden" id="${m.prefix}_moro" value="${m.moro}"/>
    <input type="hidden" id="${m.prefix}_menuId" value="${m.menuId}"/>   <!-- 子系统的Id -->
    <input type="hidden" id="${m.prefix}_funcId" value="${m.funcId}"/>   <!-- 模块的Id -->
</div>
<!-- 自动对账 -->
<div id="autoCheckAccountDialog" style="display: none;padding-top: 20px;text-align: center;">
    <form id="zzdz_addDialogForm" dsid="ds_zc_authorcheck1;ds_zc_authorcheck_item1" flag="1" sflag="d" pre="zzdz">
        <table class="tableBord">
            <tbody>
            <tr>
                <td class="name_tdQ">付款对象:</td>
                <td class="input_td" colspan="1"><input relationfunc="getClearPayInfo" qucln="PAY_PARTY" name="payParty"
                                                        class="ainit-input" areq="true" eletype="datalist"
                                                        onchange="chan(this);" iscopy="T" onfocus="inpFocus(this,1)"
                                                        onblur="inpBlur(this,1)" isprompt="F" editype="dz_autor2jg"
                                                        formatfunc="dz_autor2jgfmat" sm="true" dsid="ds_zc_authorcheck1"
                                                        modeltype="1" mulsamedsid="" dgw="620" dgh="365"
                                                        style="width: 128px; height: 20px;" type="hidden"
                                                        value=""><input
                        dsid="ds_zc_authorcheck1" readonly="readonly" onfocus="inpFocus(this,1)"
                        onblur="inpBlur(this,1)"
                        class="ainit-input ainit-dl"
                        style="cursor: pointer; width: 128px; background-color: rgb(255, 255, 255); display: block; height: 20px;"
                        onclick="showModelData(this)" dgs="true"></td>
                <td class="name_tdQ">选题名称:</td>
                <td class="input_td" colspan="1"><input lqdz="A" relationfunc="sureSelectXtName" qucln="TOPIC_SELECTED"
                                                        name="topicSelected" class="ainit-input" areq="true"
                                                        eletype="datalist" onchange="chan(this);" iscopy="T"
                                                        onfocus="inpFocus(this,1)" onblur="inpBlur(this,1)" isprompt="F"
                                                        editype="dz_authorxt" formatfunc="dz_authorxtfmat" sm="true"
                                                        dsid="ds_zc_authorcheck1" modeltype="1" mulsamedsid=""
                                                        datalistfilter="PAY_PARTY-input" dgw="620" dgh="365"
                                                        style="width: 128px; height: 20px;" type="hidden"
                                                        value=""><input
                        dsid="ds_zc_authorcheck1" readonly="readonly" onfocus="inpFocus(this,1)"
                        onblur="inpBlur(this,1)"
                        class="ainit-input ainit-dl"
                        style="cursor: pointer; width: 128px; display: block; height: 20px;"
                        onclick="showModelData(this)" dgs="true"></td>
                <td class="name_tdQ">自动拆套:</td>
                <td class="cominput_td_time" style="width: 200px;">
                    <select class="ainit-select" name="IS_VERIFY" qucln="sfct" style="width: 180px; display: block;">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<!-- 核销过滤对账数据 -->
<div id="filterzzDataDialog" style="display: none;padding-top: 20px;text-align: center;">
    <form id="hxd_filterDialogForm" dsid="ds_zc_authorcheck1;ds_zc_authorcheck_item1" flag="1" sflag="d" pre="zzdz">
        <table class="tableBord">
            <tbody>
            <tr>
                <td class="name_td_req">选题名称:</td>
                <td class="input_td" colspan="1">
                    <input qucln="TOPIC_SELECTED" name="xtName" class="ainit-input"
                           areq="true" eletype="datalist" onchange="chan(this);" iscopy="T"
                           onfocus="inpFocus(this,1)" onblur="inpBlur(this,1)" isprompt="F"
                           editype="dz_authorxt" formatfunc="dz_authorxtfmat" datalistfilter="PAY_PARTY-input"
                           dsid="ds_zc_authorverification_cl" sm="false" modeltype="6"
                           multidsid="ds_bs_multilines7" mulsamedsid="" dgw="620" dgh="365"
                           style="width: 128px; height: 20px;" type="hidden"
                           value="">
                    <input dsid="ds_zc_authorverification_cl" readonly="readonly" onfocus="inpFocus(this,1)"
                           onblur="inpBlur(this,1)"
                           class="ainit-input ainit-dl"
                           style="cursor: pointer; width: 128px; display: block; height: 20px; background-color: rgb(255, 255, 255);"
                           onclick="showModelData(this)" dgs="true">
                    <input id="ds_zc_authorverification_cl_xt" class="ainit-input" ismulcode="T" type="hidden" value="">
                </td>
                <td class="name_tdQ">对账年月:</td>
                <td class="cominput_td_time" style="width: 200px;">
                    <input id="dz_cyQFirst" dateformat="date"
                          class="ainit-input" isdefaultvalqr="F"
                          eletype="date" onchange="chanUQR(this,'1')"
                          style="width: 72px; height: 20px; display: block;"
                          onkeydown="if(event.keyCode==13) enterFquery(this,1);"
                          onclick="WdatePicker({el:'dz_cyQFirst','dateFmt':'yyyy-MM',maxDate:'#F{$dp.$D(\'dz_cyQLast\')}'})"
                          readonly="readonly"> <span style="float:left">至</span>
                    <input id="dz_cyQLast" onchange="chanUQTime(this,1)"
                        onkeydown="if(event.keyCode==13) enterFquery(this,1);" dateformat="date" class="ainit-input"
                        da="true" style="width:72px;text-align:center;"
                        onclick="WdatePicker({el:'dz_cyQLast','dateFmt':'yyyy-MM',minDate:'#F{$dp.$D(\'dz_cyQFirst\')}'})" readonly="readonly"><span
                        dgc="true" class="ainit-date" onclick="showDate(this,2)">&nbsp;</span>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>

</body>
</html>